package com.spring.cootask.web.service;

import com.spera.shopoa.util.ShopOaSessionUtil;
import com.spring.cootask.web.model.CooTaskTable;
import com.spring.cootask.web.model.TaskTablebase;
import com.spring.cootask.web.model.TaskTablebaseDetail;
import com.spring.security.web.model.BaseResult;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;
import java.util.Map;

/**
 * Created by WoJunyu on 2016/9/6.
 */
public interface CooTaskTableService {
    List<CooTaskTable> selectByParm(Map<String, Object> parm);

    BaseResult saveTable(CooTaskTable data,ShopOaSessionUtil.OaUser oaUser) throws  Exception;

    BaseResult deleteTable(String id) throws  Exception;
    
    List<TaskTablebase> tablebase();
    
    BaseResult saveOrUpdateTablebase(TaskTablebase tb) throws Exception ;
    
    BaseResult deltablebase(String id) throws Exception;
    
    List<TaskTablebaseDetail> tablebasedetail(String tablebaseID);
    
    BaseResult tablebasedetail(TaskTablebaseDetail ttb) throws Exception;
    
    BaseResult deltablebasedetail(String id) throws Exception;

    BaseResult importExcel(String id,MultipartFile excel) throws Exception;
}
